package w5

//pojo:封装数据
case class Xs(val name: String, var age: Int, val phone: String, val addr: String)

object TestCAseClass {
  def main(args: Array[String]): Unit = {
    var s = Xs("雪无痕", 20, "1399393333", "合肥")
    println(s)
    s.age = 19
    println(s)
  }
}
